package net.oschina.app.ui.activity.me;

import net.oschina.app.R;
import net.oschina.app.base.BaseActivity;
import net.oschina.app.base.BasePagerAdapter;
import net.oschina.app.fragment.me.usercolletfragment.CollectBlogFragment;
import net.oschina.app.fragment.me.usercolletfragment.CollectCodeFragment;
import net.oschina.app.fragment.me.usercolletfragment.CollectInfoFragment;
import net.oschina.app.fragment.me.usercolletfragment.CollectSoftFragment;
import net.oschina.app.fragment.me.usercolletfragment.CollectTopicFragment;
import net.oschina.app.util.ToolBarUtil;


public class UserCollectActivity extends BaseActivity {


    @Override
    public int getLayoutRes() {
        return R.layout.activity_me_collection;
    }

    @Override
    public void initView() {

        ToolBarUtil.setToolBar(this,"用户收藏");
    }

    @Override
    public void initData() {
        BasePagerAdapter adapter = new BasePagerAdapter(getSupportFragmentManager(),this);
        adapter.addTab(CollectSoftFragment.class,"软件");
        adapter.addTab(CollectTopicFragment.class,"话题");
        adapter.addTab(CollectCodeFragment.class,"代码");
        adapter.addTab(CollectBlogFragment.class,"博客");
        adapter.addTab(CollectInfoFragment.class,"资讯");
    }

    @Override
    public void initListener() {
    }
}
